import http from "@/util/request.js";
    export default {
        edit: (obj) => {
            return http({
                url: '/api/userlogin',
                method: 'put',
                data: obj,
                headers: {
                    //定义将数据以json的形式传入后台(java)
                    'Content-Type': 'application/json'
                }
            });
        },
        del: (id) => {
            return http({
                url: '/api/userlogin/' + id,
                method: 'delete',
            });
        },
        page: (obj) => {
            return http({
                url: '/api/userlogin/page',
                method: 'get',
                params: obj//表单参数
            });
        },
        reset(obj) {
            return http({
                url: '/api/userlogin/reset',  // 注意：必须加上类上的@RequestMapping前缀 /userlogin
                method: 'post',
                data: obj
            })
        }

    }
